package store.lunangangster.bpmn.model;

/**
 * 所有Bpmn模型的父类，包含了公共属性
 * 
 * @author cwk
 * @version 1.0
 */
public abstract class BaseElement {

  protected String id;
  protected String documentation;
  protected int xmlRowNumber;
  protected int xmlColumnNumber;


  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getDocumentation() {
    return documentation;
  }

  public void setDocumentation(String documentation) {
    this.documentation = documentation;
  }

  public int getXmlRowNumber() {
    return xmlRowNumber;
  }

  public void setXmlRowNumber(int xmlRowNumber) {
    this.xmlRowNumber = xmlRowNumber;
  }

  public int getXmlColumnNumber() {
    return xmlColumnNumber;
  }

  public void setXmlColumnNumber(int xmlColumnNumber) {
    this.xmlColumnNumber = xmlColumnNumber;
  }

  @Override
  public String toString() {
    return getClass().getSimpleName() + ":" + id;
  }

  public abstract String getModelType();
}
